using System;
using LambdaGp.Core;

namespace LambdaGp.Operators.Functions.MathFunctions
{
    public class Neg : UnaryFunction
    {
        public Neg()
            : base("neg")
        {
        }

        protected override Func<double> CompileUnaryToFunc(Individual individual, Func<double> argument)
        {
            return () => -argument();
        }
    }
}
